from ctypes import *

p = create_string_buffer(3)
print(sizeof(p), repr(p.raw))
p = create_string_buffer(b"Hello")
print(sizeof(p), repr(p.raw))
print(repr(p.value))

p = create_string_buffer(b"Hello", 10)
print(sizeof(p), repr(p.raw))

p.value = b"Hi"
print(sizeof(p), repr(p.raw))